package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkUndertakeCentreStorehouseDetailEnum
{
    settleDate("settleDate", "统计日期"),
    displayName("displayName", "显示名"),
    settlePeriod("settlePeriod", "结算周期"),
    receiptPayType("receiptPayType", "收付类型"),
    amount("amount", "金额"),
    preAmountReceived("preAmountReceived", "预付款已收金额");

    private final String code;
    private final String info;

    NetworkUndertakeCentreStorehouseDetailEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkUndertakeCentreStorehouseDetailEnum value : NetworkUndertakeCentreStorehouseDetailEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
